import request from '@/utils/request'

// 查询题库选项列表
export function listDcwjTkXx(query) {
  return request({
    url: '/msg/dcwjTkXx/list',
    method: 'get',
    params: query
  })
}

// 查询题库选项详细
export function getDcwjTkXx(id) {
  return request({
    url: '/msg/dcwjTkXx/' + id,
    method: 'get'
  })
}

// 新增题库选项
export function addDcwjTkXx(data) {
  return request({
    url: '/msg/dcwjTkXx',
    method: 'post',
    data: data
  })
}

// 修改题库选项
export function updateDcwjTkXx(data) {
  return request({
    url: '/msg/dcwjTkXx',
    method: 'put',
    data: data
  })
}

// 删除题库选项
export function delDcwjTkXx(id) {
  return request({
    url: '/msg/dcwjTkXx/' + id,
    method: 'delete'
  })
}
